test-service API

test-service supports 8 commands: Services: pos eve edp status route sensor msg cfg asset mod map sys tftp eng tag rec aprec test index

/epe/test/echo Input: Output:
Description: Echoes back all received parameters.

Example 1: Two parameters
/epe/test/echo?id=4&msg=hello world

Example 2: Simple array
/epe/test/echo?s=hello&s=world

Role Required: viewer
Call Counter: Total: 0, Failed: 0

/epe/test/empty Input: Output:
Description: Returns an empty response.

Role Required: viewer
Call Counter: Total: 0, Failed: 0

/epe/test/objlist    POST version Input: Output:
Description: Generates a sample list of misc objects.

Role Required: viewer
Call Counter: Total: 0, Failed: 0

count (optional) - [int] number of objects; default is 10
/epe/test/something    POST version Input: Output:
Description: Really odd testing command. Just teaching possible parameter types.

Example 1: call with required args
/epe/test/something?id=340&name=Goofy&cmd=sleep

Role Required: viewer
Call Counter: Total: 0, Failed: 0

id (required) - [int] id of the object
name (required) - [String] name of the object
cmd (required) - [Array] command list
age (optional) - [int] age of the object
descr (optional) - [Array] description list
/epe/test/wait    POST version Input: Output:
Description: Waits for the given amount of time. Default is 2000 milliseconds. Can be used to simulate long processing; testing whether client or server connection timeouts occur.

Only one caller can be in at a time.

Example 1: waits for 4 secs
/epe/test/wait?time=4000

Role Required: viewer
Call Counter: Total: 0, Failed: 0

time (optional) - [int] time to wait for, in milliseconds
/epe/test/_clear Input: Output:
Description: SPECIAL. Resets all service specific counters.

Role Required: poweruser
Call Counter: Total: 0, Failed: 0

/epe/test/_list    POST version Input: Output:
Description: SPECIAL. Lists the available commands, their arguments, responses, required roles, call counters and optional help descriptions.

Role Required:
Call Counter: Total: 1, Failed: 0

help (optional) - [int] set to 1 to get also HTML help description of the commands. Default is 0.
COMMAND.name - [String] command name
COMMAND.arg - [String] mandatory argument
COMMAND.optarg - [String] optional argument
COMMAND.response - [String] response field
COMMAND.internal - [int] 1 for internal command
COMMAND.role - [String] required role
COMMAND.callcount - [int] number of calls
COMMAND.callcountinternal - [int] number of internal calls
COMMAND.callcountfailure - [int] number of failed calls
COMMAND.htmlhelp - [String] command description in HTML format
/epe/test/_status Input: Output:
Description: SPECIAL. Returns status information about the service.

Role Required: viewer
Call Counter: Total: 0, Failed: 0

STATUS.callcount - [int] total number of calls for the service
STATUS.callcountinternal - [int] total number of internal calls for the service
STATUS.callcountfailure - [int] total number of failed calls for the service
STATUS.commandcount - [int] number of commands in service
STATUS.* - [String] service specific status information

(The data in this page was generated from /epe/test/_list?help=1)